package com.bt7274.config;

/**
 * @Data 2025/5/28 15:32
 * @Author hp
 * @Version 1.0
 * @Description SiteBasicConfig
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.util.List;

@Data
@AllArgsConstructor
public class SiteBasicConfig {
    private String siteName;
    private String siteBaseURL;
    private String siteDescription;
    private List<String> siteKeywords;
    private boolean openRegistration;
    private boolean maintenanceMode;
    @NotNull
    public static String getConfigKey(){
        return "site_basic";
    }
    @NotNull
    public static SiteBasicConfig spawnDefault(){
        return new SiteBasicConfig(
                "BT7274",
                "http://localhost:8080",
                "开源的采用Java语言编写的PT站点！",
                List.of("BitTorrent", "Torrent", "File Sharing", "Private Tracker"),
                false,
                false);
    }
}